cmake_minimum_required(VERSION 3.26)
project(FileSpaceMonitor)

set(CMAKE_CXX_STANDARD 17)

add_executable(FileSpaceMonitor main.cpp
#        "sdk/DirectoryMonitor.cpp"
#        "sdk/DirectoryMonitor.h"
        sdk/way/FileSpaceWatcher.cpp
        sdk/way/FileSpaceWatcher.h)


if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
    find_library(KERNEL32_LIB kernel32)
    find_library(USER32_LIB user32)

    if(KERNEL32_LIB AND USER32_LIB)
        target_link_libraries(FileSpaceWatcher PRIVATE ${KERNEL32_LIB} ${USER32_LIB})
    endif()
endif()
